package 老师和学生;

public class Demo {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.setName("林青霞");
        t.setAge(20);
        System.out.println(t.getName() + t.getAge());
        t.Teach();

        Teacher t1 = new Teacher("姜恒星", 20);
        System.out.println(t1.getName() + t1.getAge());
        t1.Teach();


    }
}
